import React, { Component } from 'react';
import { observer } from 'mobx-react';
import SettingRevisePwdNormal from './SettingRevisePwdNormal';
import adminType from '@/tool/adminType';
import adminAuthType from '@/tool/adminAuthType';
import PropTypes from "prop-types";

@observer class SettingChangePsw extends Component {
    static propTypes = {
        history: PropTypes.object
    };
    componentDidMount() {
        if (adminType() == 1 && adminAuthType() == 1) this.props.history.push('/设置');
    }
    render() {
        return <SettingRevisePwdNormal/>;
    }
}

export default SettingChangePsw;